#ifndef _BASE_H_
#define _BASE_H_

#include <stdio.h>
#include "logging.h"

#define SRV_VERSION										\
 "\n\t  ____________________________________________"	\
 "\n\t |                                            |"	\
 "\n\t |   %-32s         |"								\
 "\n\t |                                            |"	\
 "\n\t |   Build:   "__TIME__" "__DATE__"            |"	\
 "\n\t |                                            |"	\
 "\n\t |   (C) Copyright 2007-2010 Feinno, Inc      |"	\
 "\n\t |            All Rights Reserved.            |"	\
 "\n\t |____________________________________________|"	\
 "\n\n\n"


typedef int (* SEND_LOG_FUNC)(unsigned int level, const char * fmt, ...);

extern SEND_LOG_FUNC	send_log;

static __inline__ void version(const char * module_name)
{
	fprintf(stdout, SRV_VERSION, module_name);
}

#endif
